if __name__ == '__main__':
    fi=open('关山月-诗歌.txt','r',encoding='utf-8')
    fo = open('关山月-反转.txt','w',encoding='utf-8')
    txt = fi.readlines()
    txt.reverse()
    for line in txt:
        fo.write(line)
    fi.close()
    fo.close()